<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:c="http://xmlns.jcp.org/jsf/composite"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<link type="text/css" rel="stylesheet"
		href="#{request.contextPath}/css/skytefAcesso.css" />
</h:head>
<h:body>

	<h:form>

		<p:menubar> 
			<p:menuitem value="Home" ajax="false" icon="ui-icon-home"
				action="#{MenuBean.pageDashboard()}"
				actionListener="#{dashboardBean.refresh()}" />

			<p:submenu label="Cadastros">
				<p:menuitem value="Usuário" ajax="false" icon="ui-icon-plus"
					action="#{MenuBean.pageUsuario}"
					actionListener="#{CadUsuarioBean.refresh()}" />
				<p:separator />

				<p:menuitem value="Cliente" ajax="false" icon="ui-icon-plus"
					action="#{MenuBean.pageCliente}"
					actionListener="#{CadClientesBean.refreshDados()}" />
				<p:separator />

				<p:menuitem value="Setor" ajax="false" icon="ui-icon-plus"
					action="#{MenuBean.pageSetor}" />
				<p:separator />

				<p:menuitem value="POS" ajax="false" icon="ui-icon-plus"
					action="#{MenuBean.pagePOS}"
					actionListener="#{CadPOSBean.refreshDados()}" />
				<p:separator />

				<p:menuitem value="Cartões" ajax="false" icon="ui-icon-plus"
					action="#{MenuBean.pageCard}"
					actionListener="#{CadCardBean.refreshDados()}" />
				<p:separator />


				<p:menuitem value="Menu" ajax="false" icon="ui-icon-plus"
					action="#{MenuBean.pageMenu}" />
				<p:menuitem value="Categoria" ajax="false" icon="ui-icon-plus"
					action="#{MenuBean.pageCategoria}" />
				<p:separator />

				<p:menuitem value="Detalhamento de Produtos" ajax="false"
					icon="ui-icon-plus" action="#{MenuBean.pageDetalhamentoProd}"
					actionListener="#{CadDetalhaProdBean.refresh()}" />
				<p:menuitem value="Produto" ajax="false" icon="ui-icon-plus"
					action="#{MenuBean.pageProduto}" />

				<p:menuitem value="Lista de Preço" ajax="false" icon="ui-icon-plus"
					action="#{MenuBean.pageListaPreco}" />
			</p:submenu>

			<p:submenu label="Gerenciamento">
				<p:menuitem value="Ger. de comandas" ajax="false"
					icon="ui-icon-transfer-e-w" action="#{MenuBean.pageGerenciamentoComandas}"
					actionListener="#{GerenciamentoComandaBean.limpar()}" />
			</p:submenu>

			

			<p:submenu label="Estoque">
				<p:menuitem value="Entrada" ajax="false" icon="ui-icon-plus"
					action="#{MenuBean.pageEstoqueEntrada}" />
				<p:menuitem value="Saída" ajax="false" icon="ui-icon-minus"
					action="#{MenuBean.pageEstoqueSaida}" />
			</p:submenu>

			<p:submenu label="Relatórios">
				<p:menuitem value="Usuários " ajax="false" icon="ui-icon-document"
					action="#{MenuBean.pageVisualizarUsuarios}"
					actionListener="#{CadUsuarioBean.carregarPg()}" />

				<p:separator />
				<p:menuitem value="Status de Cartões" ajax="false" icon="ui-icon-document"
					action="#{MenuBean.pageRelatorioCardBloq}"
					actionListener="#{RelatorioCardBloqBean.refresh()}" />
					
				<p:menuitem value="Consulta de Cartão" ajax="false" icon="ui-icon-document"
					action="#{MenuBean.pageRelatorioCardPed}"
					actionListener="#{RelatorioCardPedBean.refresh()}" />

				<p:separator />
				<p:menuitem value="Pedidos " ajax="false" icon="ui-icon-document"
					action="#{MenuBean.pageRelatorioPed}"
					actionListener="#{RelatorioBean.carregarPg()}" />

				<p:menuitem value="Produtos " ajax="false" icon="ui-icon-document"
					action="#{MenuBean.pageVisualizaProduto}"
					actionListener="#{RelatorioProdutos.init()}" />

				<p:separator />
				<p:menuitem value="Produtos por hora" ajax="false"
					icon="ui-icon-document" action="#{MenuBean.pageItensPorHora()}"
					disabled="false" actionListener="#{reportHour.CarregarPagina()}" />
					
				<p:menuitem value="Status das Vendas" ajax="false"
					icon="ui-icon-document" action="#{MenuBean.pageTotaisPedidos}"
					disabled="false" actionListener="#{TotalPedidosBean.loadAllData()}" />
				<p:separator />

				<p:menuitem value="Mov. de Estoque" ajax="false"
					icon="ui-icon-document"
					action="#{MenuBean.pageMovimentacaoEstoque}" />

				<p:menuitem value="Status do Estoque" ajax="false"
					icon="ui-icon-document" action="#{MenuBean.pageStatusEstoque}" />
				<p:separator />

				<p:menuitem value="Lista de Impressão" ajax="false"
					icon="ui-icon-document" action="#{MenuBean.pageListaImpressao}"
					actionListener="#{ImpressaoBean.carregaPg()}">
				</p:menuitem>

				<p:separator />
				
				<p:menuitem value="Extrato de Cliente" ajax="false" icon="ui-icon-document"
					action="#{MenuBean.pageExtratoCli}"
					actionListener="#{ExtratoCliBean.limpar()}"
					 />

				<p:menuitem value="Entrada/Saída hora" ajax="false"
					icon="ui-icon-document" action="#{MenuBean.pageEntradaPorHora}">
				</p:menuitem>
				
				<p:separator />
				
				<p:menuitem value="Cartões distribuidos" ajax="false"
					icon="ui-icon-document" action="#{MenuBean.pageClientesComCartao}">
				</p:menuitem>
				
			</p:submenu>

			<p:submenu label="Configurações">
				<p:menuitem value="Gerais" ajax="false" icon="ui-icon-gear"
					action="#{MenuBean.pageConfiguracoes()}"
					actionListener="#{CadUsuarioBean.refresh()}" />
			</p:submenu>
			
			<p:submenu label="Ajuda">
				<p:menuitem value="Manual do usuário" url="/resources/manual/CartaoPrePagoManual.pdf" target="_blank" ajax="false" icon="ui-icon-help"
					action="#{MenuBean.pageManualUsuario()}" />
			</p:submenu>

		</p:menubar>

	</h:form>
</h:body>
</html>